package com.zx.map.service;

import com.zx.map.service.model.ConsumeLogModel;
import org.springframework.dao.DataAccessException;

import java.util.List;

/**
 * Created by IntelliJ IDEA. User: Administrator Date: 14-3-1 Time: 上午11:06 To
 * change this template use File | Settings | File Templates.
 */
public interface ConsumeLogService {	
	
	 /**
     * 消费处理
     */
    public void dealConsumeLog(final ConsumeLogModel consumeLogModel,final String merchantId);

	/**
	 * 根据Model查找列表
	 * 
	 * @param model
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public List<ConsumeLogModel> getListByModel(ConsumeLogModel model)
			throws DataAccessException;

	/**
	 * 新增并返回主键
	 * 
	 * @param model
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String add(ConsumeLogModel model) throws DataAccessException;

	/**
	 * 更新并返回主键
	 * 
	 * @param model
	 * @throws org.springframework.dao.DataAccessException
	 */
	public String update(ConsumeLogModel model) throws DataAccessException;

	/**
	 * 删除
	 * 
	 * @return
	 * @throws org.springframework.dao.DataAccessException
	 */
	public void delete(ConsumeLogModel model) throws DataAccessException;
}
